#ifndef __TYPING_FRAME_H__
#define __TYPING_FRAME_H__

#include "cocos2d.h"
#include "Player.h"
#include "format.h"
#include "extensions\cocos-ext.h"
USING_NS_CC;
using namespace extension;


enum TypingButtonTag
{
	TAG_ACCOUNT,
	TAG_PASSWORD,
	TAG_CONFIRM,
	TAG_CANCEL,
	TAG_BACKTOMAIN,
};
class TypingFrame : public Layer
{
public:
	TypingFrame();
	~TypingFrame();
	//virtual bool init();
	CREATE_FUNC(TypingFrame);
private:
	TextFieldTTF* AccountTyping;
	TextFieldTTF* PassWordTyping;
	Sprite* AccountFrame;
	Sprite* PassWordFrame;

	virtual void update(float diff);
	bool onTouchBegan(CCTouch*, CCEvent*);
	void onTouchEnded(CCTouch*, CCEvent*);
	void test();
	std::vector<Sprite*> TypingButtons;
	uint16 TouchedID;
};


#endif